package com.woniu.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
@ApiModel("添加资源表单")
public class InsertPermissionForm {
    @NotNull(message = "资源名称不能为空")
    @ApiModelProperty("资源名称")
    private String permissionName;
    @ApiModelProperty("资源路径")
    private String router;
    @ApiModelProperty("资源级别")
    @NotNull(message = "资源级别不能为空")
    private String level;
    @ApiModelProperty("父资源id")
    private Integer parent;
}
